package com.common.app.utls

import android.graphics.Color
import com.common.app.data.bean.user.UserBean
import com.common.base.security.AESEncrypt
import com.common.base.utils.DebugUtils.isDebugModel
import java.util.Date

/**
 * 作者：sosou
 * <p>
 * 版本：1.0
 * <p>
 * 创建日期：2022/8/19
 * <p>
 * 描述：
 * <p>
 * 修订历史：
 */
object Constants {

    /**
     * 默认倒计时时间默认21秒
     */
    private const val COUNTDOWN_NUM: Long = 21

    /**
     * 默认字体
     */
    const val FONT_REG = "fonts/SourceHanSans-CN-Regular.otf"

    /**
     * 加粗字体
     */
    const val FONT_BOLD = "fonts/SourceHanSans-CN-Bold.otf"

    /**
     * 中粗字体
     */
    const val FONT_MEDIUM = "fonts/SourceHanSansCN-Medium.otf"

    /**
     * 本地文件
     */
    const val LOCAL_FILE_SCHEME = "file://"

    /**
     * Content provider
     */
    const val LOCAL_PROVIDER_SCHEME = "content://"

    /**
     * asset目录下的资源
     */
    const val LOCAL_ASSET_SCHEME = "asset://"

    /**
     * res目录下的资源
     */
    const val LOCAL_ARS_SCHEME = "res://drawable/"
    const val LOCAL_ARS_SCHEME2 = "res://mipmap/"

    const val USER_SET_ICON_CAMERA = 2000
    const val USER_SET_ICON_PHOTO = 2001
    const val USER_SET_ICON_CLIPED = 2002
    const val LIVE_FLOAT_WINDOWS_REQUEST_PERMISSION = 3001


    /**
     * 当前城市ID
     */
    const val MY_CURRENT_PROVINCE_ID = "my_current_province_id"

    /**
     * 当前城市ID
     */
    const val MY_CURRENT_CITY_ID = "my_current_city_id"

    /**
     * 当前精度
     */
    const val MY_CURRENT_PRECISION_LON = "my_current_precision_lon"

    /**
     * 当前维度
     */
    const val MY_CURRENT_PRECISION_LAT = "my_current_precision_lat"


    /**
     * 当前详细地址
     */
    const val MY_CURRENT_ADDR = "my_current_addr"

    /**
     * 当前省
     */
    const val MY_CURRENT_PROVINCE = "my_current_province"

    /**
     * 当前城市
     */
    const val MY_CURRENT_CITY = "my_current_city"

    /**
     * 当前区
     */
    const val MY_CURRENT_AREA = "my_current_area"

    const val APP_ID = "3356225476"
    const val APP_KEY = "f8b5479ad93ce5f9b2aeee334f0dda20"

    var curToken = ""
    var curTkToken = ""
    var userBean: UserBean? = null
    var deviceId = ""
    var curPhone = ""

    //当前定位信息
    var curPositioningProvince: String? = ""
    var curPositioningCity: String? = ""
    var curPositioningArea: String? = ""
    var curPositioningAreaCode: String = "0"

    var longitude: String? = ""
    var latitude: String? = ""
    var curAddress: String = ""
    var mLogoTag: String? = null
    var curMainTabPosition: Int = 0

    interface ScanQrCodeReqCode {
        companion object {
            const val SCAN_LOGIN_CODE = 0x123
        }
    }

    // ******************************阿里图片上传**************************
    /**
     * 上传头像
     */
    const val TYPE_HEAD = "head"

    /**
     * 发布
     */
    const val TYPE_SD = "sendDy"

    /**
     * 探索者banner
     */
    const val TYPE_EX_BA = "exBanner"


    /**
     * 探索者身份证正反面
     */
    const val TYPE_ID_CARD_ZF = "IdCardZF"


    /**
     * 探索者身份证反面
     */
    const val TYPE_ID_CARD_F = "IdCardF"


    /**
     * 探索者上传营业执照
     */
    const val TYPE_BUS_LICENSE = "busLicense"

    /**
     * 智能生态签名
     */
    const val TYPE_AI_AGREE_SIGN = "aiAgreeSignature"

    var aliaccessKeyId = "2cdFFjsWAl7Y="
    var aliaccessKeySecret = "1xPZpbO0iNE="

    var endpoint = "oss-cn-shenzhen.aliyuncs.com"
    var bucket = if (isDebugModel()) "sz-java-test" else "new-discover"
    var bucketUrl = if (isDebugModel()) "https://new.ink/" else "https://new.ink/"

    fun getCountdownNum(): Long {
        return COUNTDOWN_NUM
    }

}